/**
 * Generate time : 2011-07-06 7:20:57
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cf.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCFContactFeedback
 * 
 */
public class ZMCFContactFeedback extends DaoEPBase {

	private String fdKeyId = " "; /* FD_KEY_ID */
	private String fdContactListId = " "; /* 联系单ID */
	private String fdSendDepartId = " "; /* 反馈单位ID */
	private String fdSendDepart = " "; /* 反馈单位 */
	private String fdSendPersonId = " "; /* 反馈人ID */
	private String fdSendPerson = " "; /* 反馈人 */
	private String fdContent = " "; /* 反馈内容 */
	private String fdSendTime = " "; /* 反馈时间 */
	private String fdModifyFlag = " "; /* 修改状态 */
	private String fdModifyPerson = " "; /* 修改人 */
	private String fdModifyTime = " "; /* 修改时间 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("FD_KEY_ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdContactListId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("联系单ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSendDepartId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("反馈单位ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSendDepart");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("反馈单位");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSendPersonId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("反馈人ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSendPerson");
		eiColumn.setFieldLength(8);
		eiColumn.setDescName("反馈人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdContent");
		eiColumn.setFieldLength(3000);
		eiColumn.setDescName("联系单内容");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSendTime");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("发送时间");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdModifyFlag");
		eiColumn.setFieldLength(1);
		eiColumn.setDescName("修改状态");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdModifyPerson");
		eiColumn.setFieldLength(8);
		eiColumn.setDescName("修改人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdModifyTime");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("修改时间");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCFContactFeedback() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - FD_KEY_ID
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdContactListId - 联系单ID
	 * 
	 * @return the fdContactListId
	 */
	public String getFdContactListId() {
		return this.fdContactListId;
	}

	/**
	 * set the fdContactListId - 联系单ID
	 */
	public void setFdContactListId(String fdContactListId) {
		this.fdContactListId = fdContactListId;
	}

	/**
	 * get the fdSendDepartId - 反馈单位ID
	 * 
	 * @return the fdSendDepartId
	 */
	public String getFdSendDepartId() {
		return this.fdSendDepartId;
	}

	/**
	 * set the fdSendDepartId - 反馈单位ID
	 */
	public void setFdSendDepartId(String fdSendDepartId) {
		this.fdSendDepartId = fdSendDepartId;
	}

	/**
	 * get the fdSendDepart - 反馈单位
	 * 
	 * @return the fdSendDepart
	 */
	public String getFdSendDepart() {
		return this.fdSendDepart;
	}

	/**
	 * set the fdSendDepart - 反馈单位
	 */
	public void setFdSendDepart(String fdSendDepart) {
		this.fdSendDepart = fdSendDepart;
	}

	/**
	 * get the fdSendPersonId - 反馈人ID
	 * 
	 * @return the fdSendPersonId
	 */
	public String getFdSendPersonId() {
		return this.fdSendPersonId;
	}

	/**
	 * set the fdSendPersonId - 反馈人ID
	 */
	public void setFdSendPersonId(String fdSendPersonId) {
		this.fdSendPersonId = fdSendPersonId;
	}

	/**
	 * get the fdSendPerson - 反馈人
	 * 
	 * @return the fdSendPerson
	 */
	public String getFdSendPerson() {
		return this.fdSendPerson;
	}

	/**
	 * set the fdSendPerson - 反馈人
	 */
	public void setFdSendPerson(String fdSendPerson) {
		this.fdSendPerson = fdSendPerson;
	}

	/**
	 * get the fdContent - 联系单内容
	 * 
	 * @return the fdContent
	 */
	public String getFdContent() {
		return this.fdContent;
	}

	/**
	 * set the fdContent - 联系单内容
	 */
	public void setFdContent(String fdContent) {
		this.fdContent = fdContent;
	}

	/**
	 * get the fdSendTime - 发送时间
	 * 
	 * @return the fdSendTime
	 */
	public String getFdSendTime() {
		return this.fdSendTime;
	}

	/**
	 * set the fdSendTime - 发送时间
	 */
	public void setFdSendTime(String fdSendTime) {
		this.fdSendTime = fdSendTime;
	}

	/**
	 * get the fdModifyFlag - 修改状态
	 * 
	 * @return the fdModifyFlag
	 */
	public String getFdModifyFlag() {
		return this.fdModifyFlag;
	}

	/**
	 * set the fdModifyFlag - 修改状态
	 */
	public void setFdModifyFlag(String fdModifyFlag) {
		this.fdModifyFlag = fdModifyFlag;
	}

	/**
	 * get the fdModifyPerson - 修改人
	 * 
	 * @return the fdModifyPerson
	 */
	public String getFdModifyPerson() {
		return this.fdModifyPerson;
	}

	/**
	 * set the fdModifyPerson - 修改人
	 */
	public void setFdModifyPerson(String fdModifyPerson) {
		this.fdModifyPerson = fdModifyPerson;
	}

	/**
	 * get the fdModifyTime - 修改时间
	 * 
	 * @return the fdModifyTime
	 */
	public String getFdModifyTime() {
		return this.fdModifyTime;
	}

	/**
	 * set the fdModifyTime - 修改时间
	 */
	public void setFdModifyTime(String fdModifyTime) {
		this.fdModifyTime = fdModifyTime;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdContactListId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdContactListId")), fdContactListId));
		setFdSendDepartId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendDepartId")), fdSendDepartId));
		setFdSendDepart(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendDepart")), fdSendDepart));
		setFdSendPersonId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendPersonId")), fdSendPersonId));
		setFdSendPerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendPerson")), fdSendPerson));
		setFdContent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdContent")), fdContent));
		setFdSendTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendTime")), fdSendTime));
		setFdModifyFlag(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdModifyFlag")), fdModifyFlag));
		setFdModifyPerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdModifyPerson")), fdModifyPerson));
		setFdModifyTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdModifyTime")), fdModifyTime));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdContactListId", StringUtils.toString(fdContactListId, eiMetadata.getMeta("fdContactListId")));
		map.put("fdSendDepartId", StringUtils.toString(fdSendDepartId, eiMetadata.getMeta("fdSendDepartId")));
		map.put("fdSendDepart", StringUtils.toString(fdSendDepart, eiMetadata.getMeta("fdSendDepart")));
		map.put("fdSendPersonId", StringUtils.toString(fdSendPersonId, eiMetadata.getMeta("fdSendPersonId")));
		map.put("fdSendPerson", StringUtils.toString(fdSendPerson, eiMetadata.getMeta("fdSendPerson")));
		map.put("fdContent", StringUtils.toString(fdContent, eiMetadata.getMeta("fdContent")));
		map.put("fdSendTime", StringUtils.toString(fdSendTime, eiMetadata.getMeta("fdSendTime")));
		map.put("fdModifyFlag", StringUtils.toString(fdModifyFlag, eiMetadata.getMeta("fdModifyFlag")));
		map.put("fdModifyPerson", StringUtils.toString(fdModifyPerson, eiMetadata.getMeta("fdModifyPerson")));
		map.put("fdModifyTime", StringUtils.toString(fdModifyTime, eiMetadata.getMeta("fdModifyTime")));

		return map;

	}
}